<template>
  <div class="list">
    <div class="item" v-for="(item, index) in list" :key="index">
      <div class="imgbox">
        <img :src="item.picUrl" alt="">
      </div>
      <div class="wordbox">
        <div class="wenzi">
          <span class="name">{{ item.name }}</span>
          <div>
            <span class="Score">{{ item.wmPoiScore }}</span>
            <span class="sale">{{ item.monthSalesTip }}</span>
          </div>
        </div>
        <div class="fee">
          <div class="peisong">
            <span class="PriceTip">{{ item.minPriceTip }}</span>
            <span class="shippingFeeTip">{{ item.shippingFeeTip }}</span>
          </div>
          <div class="far">
            <span class="deliveryTimeTip">{{ item.deliveryTimeTip }}</span>
            <span class="distance">{{ item.distance }}</span>
          </div>
      
        </div>
      </div>

    </div>
  </div>


</template>
  
<script>
import { shop_list } from '@/api'

export default {
  name: 'App',
  data() {
    return {
      // pindex: 0,
      list: []

    }
  },
  mounted() {
    shop_list().then((res) => {
      // console.log(res.data.list);
      this.list = res.data.list
    })
  }
}
</script>
  
  
<style scoped>
.list {
  box-sizing: border-box;
  height: 300px;
  width: 100%;
  padding: 10px;
  overflow: scroll;
}

::-webkit-scrollbar {
  width: 0
}

.list .item {
  height: 100px;
  display: flex;
  margin-bottom: 5px;

}

.list .item img {
  height: 80px;
  width: 90px;
}

.list .item .wordbox {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0px 8px;

}

.list .item .wordbox .wenzi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.list .item .wordbox .wenzi .name {
  font-weight: 700;
  margin-bottom: 10px;
}

.list .item .wordbox .wenzi div {
  font-size: 12px;
  margin-bottom: 10px;
}

.list .item .wordbox .wenzi div .Score {
  color: orange;
  margin-right: 15px;
}

.list .item .wordbox .wenzi div .sale {
  color: grey;
}

.list .item .wordbox .fee {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: grey;
}

.list .item .wordbox .fee .PriceTip,
.deliveryTimeTip {
  margin-right: 5px;
}
</style>